<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Stat extends CH_Controller{

	/**
	 * Index Page for this controller.
	 *
	 * Maps to the following URL
	 * 		http://example.com/index.php/welcome
	 *	- or -  
	 * 		http://example.com/index.php/welcome/index
	 *	- or -
	 * Since this controller is set as the default controller in 
	 * config/routes.php, it's displayed at http://example.com/
	 *
	 * So any other public methods not prefixed with an underscore will
	 * map to /index.php/welcome/<method_name>
	 * @see http://codeigniter.com/user_guide/general/urls.html
	 */
	 /**
         * Constructor
         */
	function __construct() { 
		parent::__construct(); 
		$this->init();
		//$this->load->helper(array('form','array', 'url','common','login'));
		$this->load->library('bbclone');
	} 
    	
	
	/**
	 * 방문자 분석
	 *
	 * @access	public
	 * @return	result
	 */
	function visitor(){
		login_admin();
		$url = $this->uri_church();
		$data = array(
				'_title' => '방문자 분석',
				'_group' => 'stat',
				'_content' => $this->config->item('ch_manager_root').'/'.$url
		);
		return $data ;
	}
	
	/**
	 * 방문자 경로분석
	 *
	 * @access	public
	 * @return	result
	 */
	function route(){
		login_admin();
		$url = $this->uri_church();
		$data = array(
				'_title' => '방문자 경로분석',
				'_group' => 'stat',
				'_content' => $this->config->item('ch_manager_root').'/'.$url
		);
		return $data ;
	}
	
	/**
	 * 방문자 환경분석
	 *
	 * @access	public
	 * @return	result
	 */
	function client(){
		login_admin();
		$url = $this->uri_church();
		$data = array(
				'_title' => '방문자 환경분석',
				'_content' => $this->config->item('ch_manager_root').'/'.$url
		);
		return $data ;
	}
	
	/**
	 * 방문자 IP확인
	 *
	 * @access	public
	 * @return	result
	 */
	function ip(){
		login_admin();
		$url = $this->uri_church();
		$data = array(
				'_title' => '방문자 IP확인',
				'_group' => 'stat',
				'_content' => $this->config->item('ch_manager_root').'/'.$url
		);
		return $data ;
	}
	
	/**
	 * 인기 컨텐츠 분석
	 *
	 * @access	public
	 * @return	result
	 */
	function popular(){
		login_admin();
		$url = $this->uri_church();
		$data = array(
				'_title' => '인기 컨텐츠 분석',
				'_content' => $this->config->item('ch_manager_root').'/'.$url
		);
		return $data ;
	}
	
	/**
	 * 방문자 IP확인
	 *
	 * @access	public
	 * @return	result
	 */
	function newMember(){
		login_admin();
		$url = $this->uri_church();
		$data = array(
				'_title' => '신규회원 분석',
				'_group' => 'stat',
				'_content' => $this->config->item('ch_manager_root').'/'.$url
		);
		return $data ;
	}
	
	
}

/* End of file html.php */
/* Location: ./application/controllers/stat.php */